package com.spring.boot.standard.admin.service;

import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.spring.boot.standard.admin.entity.User;

/**
 * @author qinhao
 * @since Fri Sep 03 08:07:51 UTC 2021
 */
public interface UserService {

	public User findById(String userid);//根据主键获取对象

	public User findByUsername(String username);//根据登录名获取对象

	public Page<User> findAll(Pageable pageable,Object[] args);//获取分页信息

	public List<User> findList();

	public void deleteById(String userid);//获取分页信息

	public User save(User user);//保存数据
	
	public int saveFromList(List<Map<String,String>> list) throws Exception;//导入

	public String getToken(User user);//获取 jwt token

}